package inheritance;

public class Animal {
	private int age=10;
	public void eat(){
		System.out.println("I am eating!");
	}
	public void printAge(){
		System.out.println("I am an animal.I am "+getAge()+"!");
	}
	public int getAge(){
		return age;
	}
}
